package Pattern.AdapterPattern.program7;

public class ChinesePostalCodeAdapter extends ChinesePostalCode implements ZipCodeValidator{
    private ChinesePostalCode chinesePostalCode;

    public ChinesePostalCodeAdapter(ChinesePostalCode pCode) {
        chinesePostalCode = pCode;
    }

    @Override
    public boolean isValidZipCode(String zip, String state) {
        return isValidChinesePcode(zip, state);
    }
}
